package com.jie.other.compose.study02

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.jie.other.R

/**
 * 屏幕内容主组件
 */
@Composable
fun Screen(
    modifier: Modifier = Modifier,
    closeClick : () -> Unit = {},
) {
    Column(
        modifier = modifier,
    ) {
        Spacer(modifier = Modifier.height(16.dp))
        SearchBar(
            modifier = Modifier.padding(horizontal = 16.dp),
            closeClick = closeClick,
        )
        HomeSection(
            title = R.string.other_align_your_body,
        ) {
            AlignBodyRow()
        }
        HomeSection(
            title = R.string.other_favorite_collections,
        ) {
            FavoriteGrid()
        }
        Spacer(modifier = Modifier.height(16.dp))
    }
}